package com.conversationboard.controller.poll;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(name = "EnterPollInformationControllerServlet", urlPatterns = "/EnterPollInformationControllerServlet")
public class EnterPollInformationControllerServlet extends HttpServlet {

	private static final long serialVersionUID = -4524028789112448685L;


	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");

		int boardId = Integer.parseInt(request.getParameter("boardid"));
		request.setAttribute("boardid", boardId);

		RequestDispatcher dispatcher = request.getRequestDispatcher("/Pages/newpoll.jsp");
		dispatcher.forward(request, response);

	}

}
